:root {
    --left-bg-color:rgba(87,84,236,0.7);
    --right-bg-color:rgba(43,43,43,0.7);
    --left-btn-hover-color:rgba(87,84,236,1);
    --right-btn-hover-color:rgba(28,128,28,1);
    --hover-width:75%;
    --other-width:25%;
    --speed:1000ms
}
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
body {
    font-family: sans-serif;
    height: 100vh;
}
.container {
    width: 100%;
    height: 100%;
    background-color: #333;
    position: relative;
}
.split {
    height: 100%;
    width: 50%;
    position: absolute;
    transition: width var(--speed) ease-in-out;
}
.split.left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url(./images/ps.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}
.split.right {
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url(./images/xbox.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}
/* .split.left::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--left-bg-color);
} */
h1 {
    color: #fff;
    font-size: 3.5rem;
    transform: translateY(-20px);
    white-space: nowrap;
}
.btn {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    white-space: nowrap;
    margin-top: 10px;
    padding: 15px 40px;
    border: #fff solid 0.2rem;
    transform: translateY(-20px);
}
.split.left .btn:hover {
    border-color: var(--left-btn-hover-color);
    background-color: var(--left-btn-hover-color);
}
.split.right .btn:hover {
    border-color: var(--right-btn-hover-color);
    background-color: var(--right-btn-hover-color);
}
.hover-left .split.left {
    width: var(--hover-width);
}
.hover-left .split.right {
    width: var(--other-width);
}
.hover-right .split.left {
    width: var(--other-width);
}
.hover-right .split.right {
    width: var(--hover-width);
}
@media (max-width:800px) {
    h1 {
        font-size: 2rem;
        transform: translateY(-20px);
    }
    .btn {
        font-size: 1rem;
        padding: 10px 30px;
    }
}
